using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;  //  for Vector2
using Microsoft.Xna.Framework.Graphics;   //   for Texture2D

namespace zombieArena
{
    class Cursor
    {
        public Vector2 position;
        public Texture2D texture;
        public Vector2 midPoint;

        public Cursor(Texture2D texture)
        {
            position = new Vector2(0, 0);
            this.texture = texture;
            midPoint = new Vector2(11, 11);
        }

        public void move(Vector2 position)
        {
            this.position = position;
        }

        public void draw(ref SpriteBatch spriteBatch, ref Rectangle viewPort)
        {
            Vector2 cursorscreenpos = position - new Vector2(viewPort.X, viewPort.Y);

            spriteBatch.Draw(texture, cursorscreenpos, null, Color.White, 0f, midPoint, 1f, SpriteEffects.None, 0f);
        }
    }
}
